package com.dhcc.sdc.cdss.dao;

import java.util.List;
import java.util.Map;

import com.dhcc.core.framework.result.node.ZTreeNode;
import org.apache.ibatis.annotations.Param;
import com.dhcc.core.framework.base.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.dhcc.sdc.cdss.entity.SdcCdssItemEntity;

/**
 * CDSS推荐方案项目
 * 
 * @ClassName: SdcCdssItemMapper
 * @Description: TODO
 * @author sunyingjie
 * @date 2023-01-03 14:23:49
 */
public interface SdcCdssItemMapper  extends BaseMapper<SdcCdssItemEntity> {
	
    List<SdcCdssItemEntity> list(@Param("map")Map<String, Object> map);
    List<SdcCdssItemEntity> page(@Param("page") Page<SdcCdssItemEntity> page,@Param("map")Map<String, Object> map);
    List<Map<String, Object>> sdcItemList(@Param("map")Map<String, Object> map);

    List<String> selectNodeIds(@Param("entityId") Long entityId);

    void deleteByNodeIds(@Param("nodeIds") List<String> nodeIds);

    List<ZTreeNode> getEntityTree();

    List<ZTreeNode> getCdssTreeByEntity(@Param("itemType") Integer itemType,@Param("entityId") Long entityId);
    List<ZTreeNode> getCdssTree(@Param("itemType") Integer itemType);

    String selectItemId(@Param("recommendName") String recommendName, @Param("itemType") Integer itemType, @Param("qcentityId") Long qcentityId);

    List<SdcCdssItemEntity> selectByNodeIds(@Param("nodeIds") List<String> nodeIds);

    Long selectRecommendId(@Param("recommendName") String recommendName, @Param("itemType") Integer itemType, @Param("qcentityId") Long qcentityId);
}
